<?php foreach($courses as $course):?>
	<?php if($course->getId() == $id):?>

		<option value="<?php echo $course->getId()?>" size="10" selected="selected"><?php echo $course->getName()?></option>
	<?php else:?>
		<option value="<?php echo $course->getId()?>" size="10"><?php echo $course->getName()?></option>
	<?php endif?>
<?php endforeach?>